package com.yanqu.road.entity.activity.rankunionwar.data;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;

//每条线路的战斗
public class CrossRankUnionWarLineData {

    private int activityId;

    private int gameNo;

    private int line;

    private AtomicInteger lineIndex1 = new AtomicInteger(1);

    private AtomicInteger lineIndex2 = new AtomicInteger(1);

    //哪边没门客多少毫秒了
    private long union1WaitTime;

    private long union2WaitTime;

    //上一次开打时间
    private long lastBattleTime;

    //开始等待的时间点,哪一对没有门客了这个时间就会有
    private long union1StartWaitTime;

    private long union2StartWaitTime;

    private String winUnionId = "";
    private long winTime;


    //队伍1
    private String unionId1;

    //队伍2
    private String unionId2;

    //unionId index 门客 队伍列表
    private Map<String,Map<Integer,CrossRankUnionWarBattlePatronData>> battlePatronsMap = new ConcurrentHashMap<>();

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGameNo() {
        return gameNo;
    }

    public void setGameNo(int gameNo) {
        this.gameNo = gameNo;
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }

    public long getUnion1WaitTime() {
        return union1WaitTime;
    }

    public void setUnion1WaitTime(long union1WaitTime) {
        this.union1WaitTime = union1WaitTime;
    }

    public long getUnion2WaitTime() {
        return union2WaitTime;
    }

    public void setUnion2WaitTime(long union2WaitTime) {
        this.union2WaitTime = union2WaitTime;
    }

    public long getLastBattleTime() {
        return lastBattleTime;
    }

    public void setLastBattleTime(long lastBattleTime) {
        this.lastBattleTime = lastBattleTime;
    }

    public long getUnion1StartWaitTime() {
        return union1StartWaitTime;
    }

    public void setUnion1StartWaitTime(long union1StartWaitTime) {
        this.union1StartWaitTime = union1StartWaitTime;
    }

    public long getUnion2StartWaitTime() {
        return union2StartWaitTime;
    }

    public void setUnion2StartWaitTime(long union2StartWaitTime) {
        this.union2StartWaitTime = union2StartWaitTime;
    }

    public String getWinUnionId() {
        return winUnionId;
    }

    public void setWinUnionId(String winUnionId) {
        this.winUnionId = winUnionId;
    }

    public long getWinTime() {
        return winTime;
    }

    public void setWinTime(long winTime) {
        this.winTime = winTime;
    }

    public String getUnionId1() {
        return unionId1;
    }

    public void setUnionId1(String unionId1) {
        this.unionId1 = unionId1;
    }

    public String getUnionId2() {
        return unionId2;
    }

    public void setUnionId2(String unionId2) {
        this.unionId2 = unionId2;
    }

    public Map<String, Map<Integer, CrossRankUnionWarBattlePatronData>> getBattlePatronsMap() {
        return battlePatronsMap;
    }

    public void setBattlePatronsMap(Map<String, Map<Integer, CrossRankUnionWarBattlePatronData>> battleLineMap) {
        this.battlePatronsMap = battleLineMap;
    }

    public int getLineIndex1() {
        return lineIndex1.get();
    }

    public int getLineIndex2() {
        return lineIndex2.get();
    }

    public int getLineIndex1AndIncrement() {
        return lineIndex1.getAndIncrement();
    }

    public void setLineIndex1(AtomicInteger lineIndex1) {
        this.lineIndex1 = lineIndex1;
    }

    public int getLineIndex2AndIncrement() {
        return lineIndex2.getAndIncrement();
    }

    public void setLineIndex2(AtomicInteger lineIndex2) {
        this.lineIndex2 = lineIndex2;
    }
}
